//
//  TDTempViewController.swift
//  微博
//
//  Created by tong dan on 16/3/1.
//  Copyright © 2016年 tong dan. All rights reserved.
//

import UIKit

class TDTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupIU()
    }

    private func setupIU(){
    
    view.backgroundColor = UIColor.whiteColor()
    
        title = "当前第\((navigationController?.childViewControllers.count ?? 0)-1)个"
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH",  target: self, action: "push")
    
    }
    
    @objc private func push(){
    
    let vc = TDTempViewController()
    navigationController?.pushViewController(vc, animated: true)
    }
    
    
}
